import http from "@/utils/request";

const url2 = "/timeAlarm";
const url3 = "/alarmRecord";

// 实时报警
// 查所有
export function findByPage(params: any) {
    return http.request({
        url: url2 + "/findByPage",
        method: 'get',
        params: params
    })
}

// 通过编号查询
export function findById(params: any) {
    return http.request({
        url: url3 + "/findById?id=" + params,
        method: 'get',
    })
}

// 报警记录
// 查所有
export function findByPages(params: any) {
    return http.request({
        url: url3 + "/findByPage",
        method: 'get',
        params: params
    })
}

// 通过编号查询
export function findByIds(params: any) {
    return http.request({
        url: url3 + "/findById?id=" + params,
        method: 'get',
    })
}

// 通过编号查询
export function findByTimes(params: any) {
    return http.request({
        url: url3 + "/findByTime",
        method: 'post',
        data: params
    })
}